﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Root.master" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="WebApp.Product1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
<table>
     <tr>
     <td> <asp:TextBox ID = "TextBoxName" runat ="server" Width="179px"></asp:TextBox></td>
     <td style="width: 125px"> <asp:dropdownlist id="DropdownlistDomain" runat="server" 
             Width="124px" Height="16px"></asp:dropdownlist></td>
     <td> <asp:dropdownlist id="DropdownlistType" runat="server" Width="131px"></asp:dropdownlist></td>
     <td style="width: 151px"> <asp:dropdownlist id="DropdownlistCompany" runat="server" 
             Width="130px"></asp:dropdownlist></td>
     <td><asp:button id="btnSearch" runat="server" Width="70px" CssClass="NormalButton" Text="Tìm"></asp:button>&nbsp;&nbsp;</td>
     <td> </td>
     </tr>
</table>
<dx:ASPxDataView ID="ASPxDataView1" runat="server" 
    DataSourceID="XmlDataSource1" RowPerPage="2" Width="100%" PagerAlign="Justify" 
    AlwaysShowPager="True" ColumnCount="4">
    <ItemTemplate>
        <table>
            <tr>
                <td colspan="3">
                    <dx:ASPxImage ID="imgCover" runat="server" ImageUrl='<%# Eval("Image") %>' 
                    Width="200px" Height="135px" />
                </td>
            </tr>
                <tr>
                <td style="width: 127px"><b>Tên Sản Phẩm:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="lblName" runat="server" Text='<%# Eval("ProductName") %>' /></td>
            </tr>
                <tr>
                <td style="width: 127px"><b>Giá:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="lblPrice" runat="server" Text='<%# Eval("Price") %>' /></td>
            </tr>
                <tr>
                <td style="width: 127px"><b>Giá Khuyến Mãi:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="lblNumber" runat="server" Text='<%# Eval("ProPrice") %>' /></td>
            </tr>
            </tr>
                <tr>
                <td style="width: 127px"><b>luot xem:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="ASPxLabel1" runat="server" Text='<%# Eval("View") %>' /></td>
            </tr>
            <tr>
				<%--<td align="right" style="Width:127px">
					<asp:HyperLink Runat="server" id= "HyperLink2" Text="Chi tiết..." NavigateUrl='<%# "ProductDetail.aspx?ProductID=" + Eval("ProductID") %>' >
				    </asp:HyperLink>
				</td>--%>
                <td align = "right"" styte = "Width:127px">
                <asp:Button runat = "server" ID = "btndetail" Text = "Chi tiết..." PostBackUrl = '<%# "ProductDetail.aspx?ProductID=" + Eval("ProductID") %>' ></asp:Button>
                </td>
		    </tr>  
        </table>
    </ItemTemplate>
<PagerSettings ShowNumericButtons="true">
    <AllButton Visible="False" />
    <Summary Visible="false" />
    <PageSizeItemSettings Visible="true" ShowAllItem="true" />
</PagerSettings>
</dx:ASPxDataView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/Product.xml" XPath="Product.xml"></asp:XmlDataSource>
</asp:Content>
